package lyx.totalexample.imagesearch.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


@RestController
@RequiredArgsConstructor
@Slf4j
@RequestMapping("/test")
@Tag(name = "整合测试")
public class testController {

    @GetMapping("/test")
    @Operation(summary = "方法名1", description = "测试knife使用")
    @Parameters({@Parameter(name = "test",description = "描述",required = true)})
    private Map test(String test){
        Map map = new HashMap();
        map.put("test",test);
        return map;
    }
}
